﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using welding.Model;

namespace welding.Controller
{
    class CheckoutController
    {
        private string cmdString;
        private CheckoutResponseClass checkoutResponse;

        public string CmdString { get => cmdString; set => cmdString = value; }
        internal CheckoutResponseClass CheckoutResponse { get => checkoutResponse; set => checkoutResponse = value; }


        public CheckoutController()
        {
        }

        public CheckoutController(string cmdString)
        {
            this.CmdString = cmdString;
            this.CheckoutResponse = JsonConvert.DeserializeObject<CheckoutResponseClass>(cmdString);
        }

    }
}
